package com.shiguiwu.springboot3.properties;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @description: feign的属性
 * @author: stone
 * @date: Created by 2023/9/22 23:26
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.properties
 */
@Slf4j
@Data
@ConfigurationProperties(prefix = "feign.response.decode")
@Component
public class OpenfeignProperties {

    List<ResultConfig> result;

    @Data
    public static class ResultConfig {

        private String resultClass;

        private String dataMethod;

        private String errorMsgMethod;

        private Map<String, Object> success;

    }
}
